package com.CNMedical.system.domain.vo;

import com.diboot.core.binding.annotation.BindEntityList;
import com.diboot.core.binding.annotation.BindField;
import com.CNMedical.system.domain.entity.AppletKnowledge;
import com.CNMedical.system.domain.entity.AppletQuestion;
import com.CNMedical.system.domain.entity.AppletQuestionOption;
import lombok.Data;

import java.util.List;

/**
 * 试题对象 applet_question
 * 
 * @author tang
 * @date 2023-03-28
 */
@Data
public class AppletQuestionVO extends AppletQuestion
{

    @BindEntityList(entity = AppletQuestionOption.class,condition = "this.id = question_id")
    private List<AppletQuestionOption> appletQuestionOptionList;

    @BindField(entity = AppletKnowledge.class,field = "title", condition = "this.knowledge_id = id")
    private String title;
}
